<?php
include '../mysqladmin.php';
$sql = "SELECT * FROM student";
$result = mysqli_query($link, $sql);

$code["data"]=mysqli_fetch_all($result,MYSQLI_ASSOC);
$code["status"] = true;
$code["msg"] = "查找成功";
$res = json_encode($code);
echo $res;
mysqli_close($link);
?>